// ==UserScript==
// @name         色花堂助手
// @namespace    https://gitee.com/huelse/js-scripts/raw/master/sehuatang-helper.js
// @version      2024-08-28
// @description  色花堂助手
// @author       THENDINGs
// @match        https://www.sehuatang.org/*
// @match        https://www.sehuatang.net/*
// @icon         https://www.sehuatang.org/favicon.ico
// @grant        unsafeWindow
// @run-at       document-body
// @license      GPLv3 License
// ==/UserScript==

(function () {
  'use strict';

  function init() {
    let postlist = document.getElementById('postlist')
    let rect = postlist.getBoundingClientRect()
    let iswidthauto = document.querySelector('.widthauto')

    let div = document.createElement('div')
    div.innerText = '测试测试'
    div.style=`position:fixed;top:${rect.y}px;left:${rect.x+rect.width}px`

    document.body.appendChild(div)
  }

})()
